﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ASoft.Base;

namespace ASoft.Repository
{
    public class RoomInfoRepository : ARepository<RoomInfoEntity>
    {
        public override string KeyName
        {
            get
            {
                return "";
            }
        }

        public RoomInfoEntity GetLast(int id)
        {
            var sql = string.Format("select top 1 * from RoomInfo where Id={0} order by 时间 desc", id);
            return GetTopOne(sql);
        }
    }
}
